<?php
// +----------------------------------------------------------------------
// | CatchAdmin [Just Like ～ ]
// +----------------------------------------------------------------------
// | Copyright (c) 2017~{$year} http://catchadmin.com All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( https://github.com/yanwenwu/catch-admin/blob/master/LICENSE.txt )
// +----------------------------------------------------------------------
// | Author: JaguarJack [ njphper@gmail.com ]
// +----------------------------------------------------------------------
// you should use `$router`
/* @var think\Route $router */
$router->group(function () use ($router) {
    // post
    $router->post('LiuYan/audit', '\\catchAdmin\\pc\\controller\\LiuYan@audit');
    $router->post('Need/audit', '\\catchAdmin\\pc\\controller\\Need@audit');
    $router->post('Need/matchUser', '\\catchAdmin\\pc\\controller\\Need@matchUser');
    $router->post('userCompany/audit', '\\catchAdmin\\pc\\controller\\UserCompany@audit');
    $router->post('UserCompany/auditLog', '\\catchAdmin\\pc\\controller\\UserCompany@auditLog');
    $router->post('UserCompany/indexByNeed', '\\catchAdmin\\pc\\controller\\UserCompany@indexByNeed');
    $router->post('SysVocation/audit', '\\catchAdmin\\pc\\controller\\SysVocation@audit');
    $router->post('WechatUser/read', '\\catchAdmin\\pc\\controller\\WechatUser@read');
    $router->post('UserExt/audit', '\\catchAdmin\\pc\\controller\\UserExt@audit');
    $router->post('SysVocation/del', '\\catchAdmin\\pc\\controller\\SysVocation@del');
    $router->post('SysVocation/indexByPid', '\\catchAdmin\\pc\\controller\\SysVocation@indexByPid');
    $router->post('SysVocation/index12', '\\catchAdmin\\pc\\controller\\SysVocation@index12');
    $router->post('SysVocation/index3', '\\catchAdmin\\pc\\controller\\SysVocation@index3');
    $router->post('SysVocation/save', '\\catchAdmin\\pc\\controller\\SysVocation@save');
    $router->post('WuZi/save', '\\catchAdmin\\pc\\controller\\WuZi@save');
    $router->post('WechatUserBalance/read', '\\catchAdmin\\pc\\controller\\WechatUserBalance@read');
    $router->post('WechatUserBalance/indexByCompanyId', '\\catchAdmin\\pc\\controller\\WechatUserBalance@indexByCompanyId');
    $router->post('WithdrawIncome/audit', '\\catchAdmin\\pc\\controller\\WithdrawIncome@audit');
    $router->post('ZhaoPin/audit', '\\catchAdmin\\pc\\controller\\ZhaoPin@audit');
    // get
    $router->get('getinfo', '\\catchAdmin\\pc\\controller\\WechatUser@getInfo');
    // resource
    $router->resource('banner', catchAdmin\pc\controller\Banner::class);
    $router->resource('need', catchAdmin\pc\controller\Need::class);
    $router->resource('news', catchAdmin\pc\controller\News::class);
    $router->resource('newsClass', catchAdmin\pc\controller\NewsClass::class);
    $router->resource('notice', catchAdmin\pc\controller\Notice::class);
    $router->resource('sysVocation', catchAdmin\pc\controller\SysVocation::class);
    $router->resource('sysRecharge', catchAdmin\pc\controller\SysRecharge::class);
    $router->resource('sysSet', catchAdmin\pc\controller\SysSet::class);
    $router->resource('userCompany', catchAdmin\pc\controller\UserCompany::class);
    $router->resource('wuZi', catchAdmin\pc\controller\WuZi::class);
    $router->resource('wechatUser', catchAdmin\pc\controller\WechatUser::class);
    $router->resource('wechatUserBalance', catchAdmin\pc\controller\WechatUserBalance::class);
    $router->resource('withdrawIncome', catchAdmin\pc\controller\WithdrawIncome::class);
    // feedback 路由
    $router->resource('feedback', catchAdmin\pc\controller\Feedback::class);
    // sysLabel 路由
    $router->resource('sysLabel', catchAdmin\pc\controller\SysLabel::class);
    // needDesign 路由
    $router->resource('needDesign', catchAdmin\pc\controller\NeedDesign::class);
    // needLaoWu 路由
    $router->resource('needLaoWu', catchAdmin\pc\controller\NeedLaoWu::class);
    // userExt 路由
    $router->resource('userExt', catchAdmin\pc\controller\UserExt::class);
    // needWuZi 路由
    $router->resource('needWuZi', catchAdmin\pc\controller\NeedWuZi::class);
    // needProject 路由
    $router->resource('needProject', catchAdmin\pc\controller\NeedProject::class);
    // needJianLi 路由
    $router->resource('needJianLi', catchAdmin\pc\controller\NeedJianLi::class);
    // needMaoYi 路由
    $router->resource('needMaoYi', catchAdmin\pc\controller\NeedMaoYi::class);
    // needXieHui 路由
    $router->resource('needXieHui', catchAdmin\pc\controller\NeedXieHui::class);
    // zhaoPin 路由
    $router->resource('zhaoPin', catchAdmin\pc\controller\ZhaoPin::class);
    // liuYan 路由
    $router->resource('liuYan', catchAdmin\pc\controller\LiuYan::class);
    // sysLabelZhaoPin 路由
    $router->resource('sysLabelZhaoPin', catchAdmin\pc\controller\SysLabelZhaoPin::class);
    // agentBaoMing 路由
    $router->resource('agentBaoMing', catchAdmin\pc\controller\AgentBaoMing::class);
})->middleware('auth');
// post
$router->post('Area/indexTree', '\\catchAdmin\\pc\\controller\\Area@indexTree');
